lib/repo-commit: Fix types of content size cache entries
authorPhilip Withnall <withnall@endlessm.com>
Mon, 10 Jul 2017 18:48:52 +0000 (19:48 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 11 Jul 2017 14:55:55 +0000 (14:55 +0000)
commit7d57459e831b562b20e1d3efe99f0dab682d1eac
treea0bc3a7538f93999c99478b3fc8539e9973d1f06
parent0aa20df20e1915c405750bc00995b130cfc3eb75
lib/repo-commit: Fix types of content size cache entries

Use goffset rather than gsize for file sizes. More importantly, get the
unpacked_size from g_file_info_get_size() (goffset) rather than from the
splice return value, which has type gssize.

This will make a difference on 32-bit systems, where goffset is defined
as off64_t, but gsize is 32 bits.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #999
Approved by: cgwalters
src/libostree/ostree-repo-commit.c